<%@ page contentType="text/html;charset=UTF-8" language="java" trimDirectiveWhitespaces="true" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="edge"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="format-detection" content="telphone=no, email=no"/>
    <meta name="renderer" content="webkit"/>
    <meta name="HandheldFriendly" content="true"/>
    <meta name="MobileOptimized" content="320"/>
    <meta name="screen-orientation" content="portrait"/>
    <meta name="x5-orientation" content="portrait"/>
    <meta name="full-screen" content="yes"/>
    <meta name="x5-fullscreen" content="true"/>
    <meta name="browsermode" content="application"/>
    <meta name="x5-page-mode" content="app"/>
    <meta name="msapplication-tap-highlight" content="no"/>
    <meta content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport"/>
    <link href="/resources/frontcss/cart.css" rel="stylesheet"  type="text/css" >
    <title>荩美国际商城</title>
    <style>
        .top-cot{ width:100%; height:2.2rem; line-height:2.2rem; background:#28163d; color:#fff; text-align:center; font-size:16px;}
    </style>

</head>
<body style="background-color: #fff;overflow-x:hidden;">
    <div class="top-cot">
        <a class="bt_prev" href="javascript:window.history.back();">
            <span class="prev rotate45"></span>
            <span class="prev rotate135"></span>
        </a>
        团队订单</div>
    <div class="total-list2 clearfix">
        <c:choose>
            <c:when test="${empty list}">
            <ul>
                <li class="good-center2" >
                    <p style="text-align: center;">暂无订单记录</p>
                    </li>
            </ul>
            </c:when>
            <c:otherwise>
                <c:forEach items="${list}" var="e">
                    <a href="/front/user/order/detail?id=${e.id}">
                    <ul>
                        <li class="good-center2" >
                            <p class="fl">订单号：${e.no}</p>
                            <p class="fl">下单人：${e.userName}</p>
                            <p class="fl">总额：${e.totalMoney}元</p>
                            <p class="fl">订单类型：
                                <c:if test="${e.type eq '0'}">购物订单</c:if>
                                <c:if test="${e.type eq '1'}">升级订单</c:if>
                            </p>
                            <p class="fl price">状态:
                                <c:choose>
                                    <c:when test="${e.status eq 'Create'}">待支付</c:when>
                                    <c:when test="${e.status eq 'Pay'}">已支付</c:when>
                                    <c:when test="${e.status eq 'Send'}">已发货</c:when>
                                    <c:when test="${e.status eq 'Fail'}">支付失败</c:when>
                                    <c:when test="${e.status eq 'Suc'}">已完成</c:when>
                                    <c:when test="${e.status eq 'Close'}">关闭</c:when>
                                    <c:otherwise>其他</c:otherwise>
                                </c:choose>
                            </p>
                            <p class="fl price">
                                下单时间：${e.dateStr}
                            </p>
                        </li>
                    </ul>
                    </a>
                </c:forEach>
            </c:otherwise>
        </c:choose>

    </div>
</body>
</html>